﻿using System;
using System.ComponentModel.DataAnnotations;

namespace Orange.Logistics.Models {
    public class StockDetail {
        [Key]
        [Column("Did", Order = 1), MaxLength(20)]
        [Required(ErrorMessage = "*")]
        public string Did { get; set; }

        [Key]
        [Column("Buttressno", Order = 2), MaxLength(20)]
        [Required(ErrorMessage = "*")]
        public string Buttressno { get; set; }

        [Key]
        [Column("Detailseqno", Order = 3)]
        [Required(ErrorMessage = "*")]
        public int Detailseqno { get; set; }

        [Column("Memoryid"), MaxLength(20)]
        [Required(ErrorMessage = "*")]
        public string Memoryid { get; set; }

        [Column("Memorycard"), MaxLength(50)]
        [Required(ErrorMessage = "*")]
        public string Memorycard { get; set; }

        [Column("Floors"), MaxLength(20)]
        public string Floors { get; set; }

        [Column("Unit")]
        public int? Unit { get; set; }

        [Column("Hottoys")]
        public int? Hottoys { get; set; }

        [Column("Curinrpieces")]
        public int? Curinrpieces { get; set; }

        [Column("CurinWeight")]
        public decimal? CurinWeight { get; set; }

        [Column("Curoutrpieces")]
        public int? Curoutrpieces { get; set; }

        [Column("CuroutWeight")]
        public decimal? CuroutWeight { get; set; }

        [Column("Rpieces")]
        public int? Rpieces { get; set; }

        [Column("Weight")]
        public decimal? Weight { get; set; }

        [Column("Status"), MaxLength(20)]
        public string Status { get; set; }

        [Column("Modifyuser"), MaxLength(12)]
        public string Modifyuser { get; set; }

        [Column("Modifytime")]
        public DateTime? Modifytime { get; set; }

        [Column("Ispacklist")]
        public bool? Ispacklist { get; set; }

        [Column("Isbuttressall")]
        public int? Isbuttressall { get; set; }

    }
}